// 对象自定义键
export interface propName {
  [propName: string]: string | number;
}
//自定义ajaxpromiseJSON对象

export interface article {
  title?: string;
  titles?: string;
  author?: string;
  browesNum?: string;
  comment?: string;
  fontlength?: string;
  createdTime?: string;
  content?: string;
  label?: string;
  id?: string;
  ArticleComments: Array<articlecomment>;
}

export interface articlecomment {
  name: string;
  createdAt: string;
  id: number;
  updatedAt: string;
  imgUrl: string;
}

//服务器返回的文章格式
export interface articlelimit {
  status?: number;
  msg?: string;
  data?: { count: number; rows: Array<article> };
}

//自定
export interface ajaxPromiseObject {
  status: string;
  msg: string;
  data: Array<article | propName> | propName;
}

//获取用户信息

export interface getUserInfo {
  status: number;
  msg: string;
  data: {
    name: string;
    nickName: string;
    id: number;
    right: number;
    imgUrl: string;
  };
}

export interface commemt {
  id: number;
  name: string;
  zan: string;
  cai: string;
  imgUrl: string;
  createdTime: string;
  content: string;
}
export interface rescomment {
  status: string;
  msg: string;
  data?: { count: number; rows: Array<commemt> };
}
//用户列表
export interface userlistinfo {
  id: number;
  name: string;
  imgUrl: string;
  nickName: string;
  right: string;
}
